package com.love.poetry.application;

import java.util.List;

import com.love.poetry.domain.Category;
import com.youboy.core.orm.Page;

public interface CategoryService {
	void save(Category category);

	void update(Category category);

	void delete(String id);

	Category get(String id);

	Category queryUniqueByPath(String path);

	Category queryUniqueByName(String name);

	Page<Category> queryPage(Page<Category> page);

	List<Category> queryTop();

	Page<Category> queryPageTop(Page<Category> page);

	List<Category> query(Object object);

	List<Category> queryChildById(String id);

	Page<Category> queryPageChildById(Page<Category> page, String id);

	List<Category> queryCategories();

}
